package ch2;

import java.util.Scanner;

public class Ex21 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("开始投资：");
        double tz = in.nextDouble();
        System.out.println("按百分比输入年利率：");
        double nll = in.nextDouble() / 100;  //百分之3.25   要去掉百分
        System.out.println("输入年份：");
        int nf = in.nextInt() * 12;  // 年数是12
        double c = 1 + nll;
        System.out.println("未来的价值：" + tz * c);
    }
}
